<!DOCTYPE html>
<html>
<head>
    <title>派工记录</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <Row  :gutter="16" style="margin: 8px 0px 0px 1px">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"></i-input>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
        </Row>
        <Row :gutter="16" style="margin: 3px 0px 0px 0px;">
            <div class="buttons-group">
                <i-button type="warning" @click="addError"><i class="fa fa-plus"></i>&nbsp;&nbsp;添加异常</i-button>
                <i-button type="primary" @click="urgeClick"><i class="fa fa-anchor"></i>&nbsp;催办</i-button>
                <i-button type="info" @click="sendClick"><i class="fa fa-plus"></i>&nbsp;工单接收</i-button>
                #if($shiro.hasPermission("sendrecording:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("sendrecording:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("sendrecording:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
        <table id="jqGrid"></table>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
        <i-form ref="formValidate" :model="sendRecording" :rules="ruleValidate" :label-width="80">
            <Row>
                <i-col span="11">
                    <Form-item label="派工人员" prop="sendPerson">
                        <i-input v-model="sendRecording.sendPerson" placeholder="派工人员"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="报修编号/巡检编号Id" prop="codeId">
                        <i-input v-model="sendRecording.codeId" placeholder="报修编号/巡检编号Id"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="是否催办（1：是，0：否）" prop="urgeFlag">
                        <i-input v-model="sendRecording.urgeFlag" placeholder="是否催办（1：是，0：否）"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="${column.comments}" prop="planId">
                        <i-input v-model="sendRecording.planId" placeholder="${column.comments}"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="是否删除(1:未删除，0：删除)" prop="delFlag">
                        <i-input v-model="sendRecording.delFlag" placeholder="是否删除(1:未删除，0：删除)"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="备注" prop="remark">
                        <i-input v-model="sendRecording.remark" placeholder="备注"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="是否接单" prop="whetherOrders">
                        <i-input v-model="sendRecording.whetherOrders" placeholder="是否接单"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <Row>
                <i-col span="11">
                    <Form-item label="工单接受时间" prop="workAcceptDate">
                        <i-input v-model="sendRecording.workAcceptDate" placeholder="工单接受时间"></i-input>
                    </Form-item>
                </i-col>
                <i-col span="11">
                    <Form-item label="派工时间" prop="sendDate">
                        <i-input v-model="sendRecording.sendDate" placeholder="派工时间"></i-input>
                    </Form-item>
                </i-col>
            </Row>
            <i-col span="11">
                <Form-item label="工单接收人" prop="workAcceptPerson">
                    <i-input v-model="sendRecording.workAcceptPerson" placeholder="工单接收人"></i-input>
                </Form-item>
            </i-col>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px">
                返回</i-button>
                <i-button type="info" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
    </Card>
</div>

<script src="${rc.contextPath}/js/sys/sendrecording.js?_${date.systemTime}"></script>
</body>
</html>
